import 'adapter/dio_adapter.dart';
import 'request.dart';
import 'response.dart';

class JMNet {
  /// 发送请求
  static Future<JMNetResponse> fire(JMNetRequest request) async {
    return await _dioSend(request);
  }

  // dio适配器
  static Future<JMNetResponse> _dioSend(JMNetRequest request) async {
    var adapter = DioAdapter();
    return await adapter.send(request);
  }
}
